import React from 'react'
import { StaticRouter } from 'react-router-dom'
// import { Provider, enableStaticRendering } from 'mobx-react'
import App from './views/index'
// import { createStoreMap } from './store/sotre'

//让mobx在服务端渲染的时候，不会重复的数据变换
// enableStaticRendering(true)
export default (stores, context, url) => {
    console.log('urlurlurlurlurlurlurlurlurlurl', url)
    return (
        <StaticRouter context={context} location={url}>
            <App />
        </StaticRouter>
    )
}

// export {
//     createStoreMap
// }
